<?php
global $q;
$cur_path = dirname(__FILE__).'/';
$variables = array();
global $variables,$cur_path;

define ("TEMPLATES_DIR",dirname(__FILE__).'/templates/',1);
define ("MODULES_DIR",dirname(__FILE__).'/modules/',1);
define ("TEMPLATE",'test',1);

include ($cur_path.'/config.php');
include ($cur_path.'/database.inc.php');
include ($cur_path.'/functions.inc.php');
include ($cur_path.'/variables.inc.php');



$q = $_REQUEST['q'];
if($q == '') $page = 'frontpage';
else $page = args(0);
if(!function_exists($page)) $page = 'not_found';


theme(TEMPLATE,$page());
